<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/views/commons/taglibs.jsp"%>
<%@ taglib prefix="sys" tagdir="/WEB-INF/tags" %>

<html>
<head>
  <title>角色添加页面</title>
  <jsp:include page="../../commons/common-add.jsp"></jsp:include>
</head>
<body>
<sys:message msgContent="${message}"/>
<div class="box-body" >
  <form id="inputForm" action="license_save" method="post"  class="form-horizontal ">
    <input type="hidden" id="id" name="id" value="${ empty license.id ? 0 :license.id}"/>
    <div class="top-form-element-margin">
      <div class="row form-group line-height-34">
        <label for="subject" class="col-sm-3 control-label text-pull-right" >
          名称:
        </label>
        <div class="col-sm-4">
          <input type="text" autofocus class="required form-control" style="display: inline;" id="subject" name="subject" readonly="readonly"   value="${license.licenseMain.subject}">
        </div>
      </div>
      <div class="row form-group line-height-34">
        <label for="type" class="col-sm-3 control-label text-pull-right" >
          类型:
        </label>
        <div class="col-sm-4">
          <input type="text" autofocus class="required form-control" style="display: inline;" id="type" name="type" readonly="readonly"   value="${license.licenseTemplate.type}">
        </div>
      </div>
      <div class="row form-group line-height-34">
        <label for="username" class="col-sm-3 control-label text-pull-right" >
          用户:
        </label>
        <div class="col-sm-4">
          <input type="text" autofocus class="required form-control" style="display: inline;" id="username" name="username" readonly="readonly"   value="${license.licenseMain.sysUser.username}">
        </div>
      </div>

      <div class="row form-group line-height-34">
        <label for="issued_date" class="col-sm-3 control-label text-pull-right" >
          创建时间:
        </label>
        <div class="col-sm-4">
          <input type="text" autofocus class="required form-control" style="display: inline;" id="issued_date" name="issued_date" readonly="readonly"  value="<fmt:formatDate value="${license.issuedDate}" pattern="yyyy-MM-dd" />">

        </div>
      </div>
      <div class="row form-group line-height-34">
        <label for="not_before" class="col-sm-3 control-label text-pull-right" >
          开始时间:
        </label>
        <div class="col-sm-4">
          <input type="text" autofocus class="required form-control" style="display: inline;" id="not_before" name="not_before" readonly="readonly"    value="<fmt:formatDate value="${license.notBefore}" pattern="yyyy-MM-dd" />">
        </div>
      </div>
      <div class="row form-group line-height-34">
        <label for="not_after" class="col-sm-3 control-label text-pull-right" >
          结束时间:
        </label>
        <div class="col-sm-4">
          <input type="text" autofocus class="required form-control" style="display: inline;" id="not_after" name="not_after" readonly="readonly"   value="<fmt:formatDate value="${license.notAfter}" pattern="yyyy-MM-dd" />">
        </div>
      </div>
      <div class="row form-group line-height-34">
        <label for="validity" class="col-sm-3 control-label text-pull-right" >
          时长(天):
        </label>
        <div class="col-sm-4">
          <input type="text" autofocus class="required form-control" style="display: inline;" id="validity" name="validity" readonly="readonly"   value="${license.validity}">
        </div>
      </div>
      <div class="row form-group line-height-34">
        <label for="info" class="col-sm-3 control-label text-pull-right" >
          说明信息:
        </label>
        <div class="col-sm-4">
          <input type="text" autofocus class="required form-control" style="display: inline;" id="info" name="info" readonly="readonly"   value="${license.info}">
        </div>
      </div>
      <div class="row form-group line-height-34">
        <label for="motherboard" class="col-sm-3 control-label text-pull-right" >
          主板序列号:
        </label>
        <div class="col-sm-4">
          <input type="text" autofocus class="required form-control" style="display: inline;" id="motherboard" name="motherboard" readonly="readonly"   value="${license.motherboard}">
        </div>
      </div>
      <div class="row form-group line-height-34">
        <label for="system" class="col-sm-3 control-label text-pull-right" >
          系统序列号:
        </label>
        <div class="col-sm-4">
          <input type="text" autofocus class="required form-control" style="display: inline;" id="system" name="system" readonly="readonly"   value="${license.system}">
        </div>
      </div>
      <div class="row form-group line-height-34">
        <label for="machine" class="col-sm-3 control-label text-pull-right" >
          主机管理数量:
        </label>
        <div class="col-sm-4">
          <input type="text" autofocus class="required form-control" style="display: inline;" id="machine" name="machine" readonly="readonly"   value="${license.machine}">
        </div>
      </div>
      <div class="row form-group line-height-34">
        <label for="renew_times" class="col-sm-3 control-label text-pull-right" >
          续期次数:
        </label>
        <div class="col-sm-4">
          <input type="text" autofocus class="required form-control" style="display: inline;" id="renew_times" name="renew_times" readonly="readonly"   value="${license.renewTimes}">
        </div>
      </div>
      <div class="form-group line-height-34">
        <label for="cpu" class="col-sm-3 control-label text-pull-right">cpu序列号:</label>
        <div class="col-sm-4">
                <textarea type="te"  class="form-control" id="cpu" name="cpu" placeholder="cpu序列号"  cols="30" rows="5" readonly
                >${license.cpu}</textarea>
        </div>
      </div>
      <div class="form-group line-height-34">
        <label for="cpu" class="col-sm-3 control-label text-pull-right">Mac地址:</label>
        <div class="col-sm-4">

                <textarea type="te"  class="form-control" id="mac" name="mac" placeholder="Mac地址"  cols="30" rows="5" readonly
                >${license.mac}</textarea>

        </div>
      </div>
      <div class="form-group line-height-34">
        <label for="cpu" class="col-sm-3 control-label text-pull-right">用户ip:</label>
        <div class="col-sm-4">
                <textarea type="te"  class="form-control" id="ip" name="ip" placeholder="用户ip"  cols="30" rows="5" readonly
                >${license.ip}</textarea>
        </div>
      </div>
      <div class="form-group line-height-34">
        <label for="cpu" class="col-sm-3 control-label text-pull-right">硬盘信息:</label>
        <div class="col-sm-4">
                <textarea type="te"  class="form-control" id="disk" name="disk" placeholder="硬盘信息"  cols="30" rows="5" readonly
                >${license.disk}</textarea>
        </div>
      </div>

    </div>
  </form>
</div>
</body>
</html>
